package com.cq.jackmar.rxdemo;

import android.app.Application;
import android.content.Context;

import com.cq.jackmar.rxdemo.util.ScreenUtil;
import com.cq.jackmar.rxdemo.view.imagepicker.GlideImageLoader;
import com.cq.jackmar.rxdemo.view.imagepicker.ImagePickerUtils;
import com.lzy.imagepicker.ImagePicker;
import com.lzy.imagepicker.view.CropImageView;

/**
 * Created by JackMar on 2017/3/1.
 * 邮箱：1261404794@qq.com
 */

public class XApplication extends Application {

    private static XApplication sInstance;

    //单例模式中获取唯一的MyApplication实例
    public static XApplication getInstance() {
        if (sInstance == null) {
            sInstance = new XApplication();
        }
        return sInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    private void init() {
        ImagePickerUtils.initImagePicker();
//        ScreenUtil.defaultCenter().init(this);
    }
}
